Optimal. Leaf size=290 \[ \frac{\tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b-\sqrt{b^2-4 a c}}}\right ) \left (\frac{-c (2 a h+b f)+b^2 h+2 c^2 d}{\sqrt{b^2-4 a c}}-b h+c f\right )}{\sqrt{2} c^{3/2} \sqrt{b-\sqrt{b^2-4 a c}}}+\frac{\tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{\sqrt{b^2-4 a c}+b}}\right ) \left (-\frac{-2 a c h+b^2 h-b c f+2 c^2 d}{\sqrt{b^2-4 a c}}-b h+c f\right )}{\sqrt{2} c^{3/2} \sqrt{\sqrt{b^2-4 a c}+b}}-\frac{(2 c e-b g) \tanh ^{-1}\left (\frac{b+2 c x^2}{\sqrt{b^2-4 a c}}\right )}{2 c \sqrt{b^2-4 a c}}+\frac{g \log \left (a+b x^2+c x^4\right )}{4 c}+\frac{h x}{c} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 1.51883, antiderivative size = 290, normalized size of antiderivative = 1., number of steps used = 11, number of rules used = 9, integrand size = 35, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.257 \[ \frac{\tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b-\sqrt{b^2-4 a c}}}\right ) \left (\frac{-c (2 a h+b f)+b^2 h+2 c^2 d}{\sqrt{b^2-4 a c}}-b h+c f\right )}{\sqrt{2} c^{3/2} \sqrt{b-\sqrt{b^2-4 a c}}}+\frac{\tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{\sqrt{b^2-4 a c}+b}}\right ) \left (-\frac{-2 a c h+b^2 h-b c f+2 c^2 d}{\sqrt{b^2-4 a c}}-b h+c f\right )}{\sqrt{2} c^{3/2} \sqrt{\sqrt{b^2-4 a c}+b}}-\frac{(2 c e-b g) \tanh ^{-1}\left (\frac{b+2 c x^2}{\sqrt{b^2-4 a c}}\right )}{2 c \sqrt{b^2-4 a c}}+\frac{g \log \left (a+b x^2+c x^4\right )}{4 c}+\frac{h x}{c} \]
Antiderivative was successfully verified.
[In] Int[(d + e*x + f*x^2 + g*x^3 + h*x^4)/(a + b*x^2 + c*x^4),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 143.637, size = 286, normalized size = 0.99 \[ \frac{g \log{\left (a + b x^{2} + c x^{4} \right )}}{4 c} + \frac{h x}{c} + \frac{\left (b g - 2 c e\right ) \operatorname{atanh}{\left (\frac{b + 2 c x^{2}}{\sqrt{- 4 a c + b^{2}}} \right )}}{2 c \sqrt{- 4 a c + b^{2}}} - \frac{\sqrt{2} \left (b \left (b h - c f\right ) - 2 c \left (a h - c d\right ) + \sqrt{- 4 a c + b^{2}} \left (b h - c f\right )\right ) \operatorname{atan}{\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b + \sqrt{- 4 a c + b^{2}}}} \right )}}{2 c^{\frac{3}{2}} \sqrt{b + \sqrt{- 4 a c + b^{2}}} \sqrt{- 4 a c + b^{2}}} + \frac{\sqrt{2} \left (b \left (b h - c f\right ) - 2 c \left (a h - c d\right ) - \sqrt{- 4 a c + b^{2}} \left (b h - c f\right )\right ) \operatorname{atan}{\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b - \sqrt{- 4 a c + b^{2}}}} \right )}}{2 c^{\frac{3}{2}} \sqrt{b - \sqrt{- 4 a c + b^{2}}} \sqrt{- 4 a c + b^{2}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((h*x**4+g*x**3+f*x**2+e*x+d)/(c*x**4+b*x**2+a),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 1.07815, size = 383, normalized size = 1.32 \[ \frac{\frac{2 \sqrt{2} \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b-\sqrt{b^2-4 a c}}}\right ) \left (c \left (f \sqrt{b^2-4 a c}-2 a h-b f\right )+b h \left (b-\sqrt{b^2-4 a c}\right )+2 c^2 d\right )}{\sqrt{b^2-4 a c} \sqrt{b-\sqrt{b^2-4 a c}}}-\frac{2 \sqrt{2} \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{\sqrt{b^2-4 a c}+b}}\right ) \left (-c \left (f \sqrt{b^2-4 a c}+2 a h+b f\right )+b h \left (\sqrt{b^2-4 a c}+b\right )+2 c^2 d\right )}{\sqrt{b^2-4 a c} \sqrt{\sqrt{b^2-4 a c}+b}}+\frac{\sqrt{c} \left (g \left (\sqrt{b^2-4 a c}-b\right )+2 c e\right ) \log \left (\sqrt{b^2-4 a c}-b-2 c x^2\right )}{\sqrt{b^2-4 a c}}+\frac{\sqrt{c} \left (g \left (\sqrt{b^2-4 a c}+b\right )-2 c e\right ) \log \left (\sqrt{b^2-4 a c}+b+2 c x^2\right )}{\sqrt{b^2-4 a c}}+4 \sqrt{c} h x}{4 c^{3/2}} \]
Antiderivative was successfully verified.
[In] Integrate[(d + e*x + f*x^2 + g*x^3 + h*x^4)/(a + b*x^2 + c*x^4),x]
[Out]
_______________________________________________________________________________________
Maple [B] time = 0.039, size = 1132, normalized size = 3.9 \[ \text{result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((h*x^4+g*x^3+f*x^2+e*x+d)/(c*x^4+b*x^2+a),x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ \frac{h x}{c} + \frac{\int \frac{c g x^{3} + c e x +{\left (c f - b h\right )} x^{2} + c d - a h}{c x^{4} + b x^{2} + a}\,{d x}}{c} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((h*x^4 + g*x^3 + f*x^2 + e*x + d)/(c*x^4 + b*x^2 + a),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [F(-1)] time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((h*x^4 + g*x^3 + f*x^2 + e*x + d)/(c*x^4 + b*x^2 + a),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((h*x**4+g*x**3+f*x**2+e*x+d)/(c*x**4+b*x**2+a),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 1.69702, size = 1, normalized size = 0. \[ \mathit{Done} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((h*x^4 + g*x^3 + f*x^2 + e*x + d)/(c*x^4 + b*x^2 + a),x, algorithm="giac")
[Out]